﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Diablo3.Engine.Property
{
    /// <summary>
    /// 击中恢复
    /// </summary>
    public class LifePerHit : ItemsProperty,IAffecteLifePerHit
    {
        public LifePerHit() { }

        public LifePerHit(Double value)
        {
            Value = value;
        }

        public double Value { get; set; }

        public override string Des
        {
            get { return string.Format("击中恢复 {0}", Value); }
        }

        #region IAffecteLifePerHit 成员

        double IAffecteLifePerHit.Affecte(double source)
        {
            return source + Value;
        }

        #endregion
    }
}
